package org.haredot.context;

import org.haredot.entity.LoginLog;

public class LoginLongContextHolder {
    /**
     * 维护一个 用来 存储 LoginLog 对象的 线程容器
     */
    private static ThreadLocal<LoginLog> threadLocal = ThreadLocal.withInitial(LoginLog::new);

    public static LoginLog getLog() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }

}
